DataSource for Entity Framework in WPF
C1.LiveLinq Namespace / IndexedQueryExtensions Class / Where Method / Where<T>(IIndexedSource<T>,Expression<Func<T,Boolean>>,Boolean) Method
The type of the elements of source.
An C1.LiveLinq.Indexing.IIndexedSource<T> to filter.
A function to test each element for a condition.
Specifies whether the source order must be preserved in the result.

In This Topic
    Where<T>(IIndexedSource<T>,Expression<Func<T,Boolean>>,Boolean) Method
    In This Topic
    Filters the source collection based on a predicate, preserving the order of the source collection.
    Syntax
    'Declaration
     
    Public Overloads Shared Function Where(Of T)( _
       ByVal source As IIndexedSource(Of T), _
       ByVal predicate As Expression(Of Func(Of T,Boolean)), _
       ByVal preserveOriginalOrder As Boolean _
    ) As IIndexedSource(Of T)

    Parameters

    source
    An C1.LiveLinq.Indexing.IIndexedSource<T> to filter.
    predicate
    A function to test each element for a condition.
    preserveOriginalOrder
    Specifies whether the source order must be preserved in the result.

    Type Parameters

    T
    The type of the elements of source.

    Return Value

    An C1.LiveLinq.Indexing.IIndexedSource<T> that contains elements from the input collection that satisfy the condition.
    Remarks
    Preserving the order can lessen the effect of performance optimization using an index. Use this overload only if preserving the order in this operation is essential.
    See Also